package com.leyou.item.service.iml;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.leyou.item.dto.SpuDetailDTO;
import com.leyou.item.entity.SpuDetail;
import com.leyou.item.mapper.SpuDetailMappper;
import com.leyou.item.service.SpuDetailService;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class SpuDetailServiceImpl extends ServiceImpl<SpuDetailMappper, SpuDetail> implements SpuDetailService {
    @Override
    public SpuDetailDTO querySpuDetailById(Long id) {
        return  new SpuDetailDTO(getById(id));
    }
}
